/*
 * Copyright (C) 2012 CVTT - China
 *
 * Author(s): huah
 */

package com.zoolu.sip.header;

import com.zoolu.tools.Parser;

public class CallReleaseHeader extends Header {

	public CallReleaseHeader(int n) {
		super(SipHeaders.Call_Release, String.valueOf(n));
	}

	public CallReleaseHeader(String hvalue) {
		super(SipHeaders.Call_Release, hvalue);
	}

	public CallReleaseHeader(Header hd) {
		super(hd);
	}

	public void setReason(int n) {
		value = String.valueOf(n);
	}

	public int getReason() {
		return (new Parser(value)).getInt();
	}
}